package com.gmrz.uaf.remote.plugin;

/**
 * Created by gongyuqiang on 2017/5/23.
 */
public class PluginData {

    private String aaid;
    private String authType;
    private int operType;
    private String data1;
    private String data2;
    private String data3;
    private String data4;
    private String data5;

    public void setAaid(String aaid) {
        this.aaid = aaid;
    }

    public void setData1(String data1) {
        this.data1 = data1;
    }

    public void setData2(String data2) {
        this.data2 = data2;
    }

    public void setData3(String data3) {
        this.data3 = data3;
    }

    public void setData4(String data4) {
        this.data4 = data4;
    }

    public void setData5(String data5) {
        this.data5 = data5;
    }

    public void setData(int index, String data){
        if(index == 0) {
            this.setData1(data);
        }
        else if(index == 1) {
            this.setData2(data);
        }
        else if(index == 2) {
            this.setData3(data);
        }
        else if(index == 3) {
            this.setData4(data);
        }
        else if(index == 4) {
            this.setData5(data);
        }
    }

    public int getDataCount(){
        int count  = 0;
        if(this.data1 != null)
            count++;
        if(this.data2 != null)
            count++;
        if(this.data3 != null)
            count++;
        if(this.data4 != null)
            count++;
        if(this.data5 != null)
            count++;
        return count;
    }
    public String getAaid() {
        return aaid;
    }

    public String getData1() {
        return data1;
    }

    public String getData2() {
        return data2;
    }

    public String getData3() {
        return data3;
    }

    public String getData4() {
        return data4;
    }

    public String getData5() {
        return data5;
    }

    public String getAuthType() {
        return authType;
    }

    public void setAuthType(String authType) {
        this.authType = authType;
    }

    public int getOperType() {
        return operType;
    }

    public void setOperType(int operType) {
        this.operType = operType;
    }
}
